import { HomeComponent } from './home/home.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PageComponent } from '@view/page/page.component';

const routes: Routes = [
	{
		path: '',
		component: PageComponent,
		children: [
			{
				path: 'home',
				component: HomeComponent,
			},
			{
				path: 'user',
				loadChildren: () => import('../user/user.module').then((mod) => mod.UserModule),
			},
		]
	}
];

@NgModule({
	imports: [RouterModule.forChild(routes)],
	exports: [RouterModule]
})
export class PageRoutingModule { }
